package com.i7time.qutan.controller;

import com.i7time.qutan.utils.ReturnMap;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Hsia on 16/6/11.
 */
public class Template {
    Logger logger=Logger.getLogger(this.getClass());



    /**
     * 获取demo
     * @return
     */
    @ResponseBody
    @RequestMapping("demo")
    public Map demo(@RequestBody Map map){
        try{
            HashMap result= ReturnMap.getSuccessMap();


            result.put("sceneList","1");


            return result;

        }catch(Exception e){
            logger.error("",e);
            return ReturnMap.exceptionMap;
        }

    }








}
